package com.skt.domain.VO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;

/**
 * 租赁费用计算结果VO
 */
@Data
@Schema(description = "租赁费用计算结果")
public class RentalCalculateVO {

    @Schema(description = "总租金金额", example = "500.00")
    private BigDecimal totalRentalAmount;

    @Schema(description = "押金金额", example = "250.00")
    private BigDecimal depositAmount;

    @Schema(description = "总金额（租金+押金）", example = "750.00")
    private BigDecimal totalAmount;

    @Schema(description = "总租赁天数", example = "7")
    private Integer totalDays;

    @Schema(description = "计算明细列表")
    private List<CalculateItemVO> details;

    @Data
    @Schema(description = "费用计算明细项")
    public static class CalculateItemVO {
        
        @Schema(description = "服装ID", example = "1")
        private Long costumeId;

        @Schema(description = "商家ID", example = "1")
        private Long merchantId;
        
        @Schema(description = "服装名称", example = "汉服-唐装")
        private String costumeName;
        
        @Schema(description = "租赁数量", example = "2")
        private Integer quantity;
        
        @Schema(description = "租赁天数", example = "7")
        private Integer rentalDays;
        
        @Schema(description = "日租金", example = "35.00")
        private BigDecimal dailyPrice;
        
        @Schema(description = "小计金额", example = "490.00")
        private BigDecimal subtotal;
    }
}